package io.gitee.zicai.bus.adaptor;

import io.gitee.zicai.bus.bus.ISendBus;
import io.gitee.zicai.bus.core.IBusSender;

/**
 * IBusSendAdaptor
 *
 * @author zicai
 * @since 2021-01-18
 */
public interface IBusSendAdaptor<S extends IBusSender, SB extends ISendBus<S, ST>, ST> extends IBusAdaptor<S, SB, ST> {

    /**
     * 厂商的服务
     *
     * @param brandName 厂商名称
     * @return IBusReceiver
     */
    @Override
    default S getCmdService(String brandName) {
        return getCmdSender(brandName);
    }

    /**
     * 厂商的命令发送服务
     *
     * @param brandName 厂商名称
     * @return IBusSender
     */
    S getCmdSender(String brandName);

}
